﻿@model IEnumerable<Traxz.Models.ExerciseSession>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            DateCreated
        </th>
        <th>
            TotalTime
        </th>
        <th>
            CaloriesBurned
        </th>
        <th>
            AvgSpeed
        </th>
        <th>
            SessionName
        </th>
        <th>
            Distance
        </th>
        <th>
            SessionType
        </th>
        <th>
            UserId
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.DateCreated)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CaloriesBurned)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AvgSpeed)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SessionName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Distance)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SessionType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserId)
        </td>
    </tr>
}

</table>
